#include "WarGameLib.h"

class wgCamera
{
	vector3_t position, upVector, rightVector, viewDir;
	vector3_t rot;


	// frustum culling

	plane_t		frustum[6];

	void UpdateFrustum();
public:

	wgCamera();

	vector3_t& getPosition();
	void setPosition(float x, float y, float z);
	void setRotation(float rx, float ry, float rz);
	void RotateX(float radians);
	void RotateY(float radians);
	void RotateZ(float radians);
	void MoveForward(float);
	void MoveUpward(float);
	void Strafe(float);

	void UpdateViewMatrix();


	bool SimpleFrustumBoxTest(float x, float y, float z, float width, float height, float depth);
};